{% extends "themes/" + sysSettings.systemTheme + "/layout.html" %}
{% from "security/_macros.html" import render_field_with_errors, render_field %}

{% block head %}
<title>{{sysSettings.siteName}} - Reset Password</title>
{% endblock %}

{% block body %}
    <div class="container">
        <div class="row">
            <div class="col-sm-9 col-md-7 col-lg-5 mx-auto">
                <div class="card my-5 shadow text-left">

                    <h5 class="card-header text-white bg-dark mb-3">
                        Reset Password
                    </h5>
                    <div class="card-body">
                        <div>
                            <form action="{{ url_for_security('reset_password', token=reset_password_token) }}" method="POST" name="reset_password_form">
                              {{ reset_password_form.hidden_tag() }}
                              <b><i class="fas fa-key"></i> New Password</b><br>
                              {{ render_field(reset_password_form.password, class_="form-control") }}
                              <b><i class="fas fa-key"></i> Confirm New Password</b><br>
                              {{ render_field(reset_password_form.password_confirm, class_="form-control") }}
                              {{ render_field(reset_password_form.submit, class_="btn btn-primary") }}
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

{% endblock %}